package com.heima.media.listener;

import com.heima.media.task.MediaTask;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

    @Component
    public class AuditListener {

        @Autowired
        private MediaTask mediaTask;


        @PostConstruct //项目启动后改方法执行
        public void handlerDelayMsg() {
            mediaTask.handlerMsg();
        }
    }
